/*-----------------------------------------------------------------------------
 * stock_common.h - Header for common routines for server and clients
 *
 * March 2010, Forhad Ahmed
 *-----------------------------------------------------------------------------
 */

#ifndef _STOCK_COMMON_
#define _STOCK_COMMON_

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <stdint.h>
#include <signal.h>
#include <sys/time.h>
#include "logging.h"

uint32_t 
stock_gettimeofday();

char *
stock_price_string(int price);

char *
stock_time_string(uint32_t time);


#define STOCK_HEADER_LEN 8

int
stock_verify_header(void *msg);



#endif /* _STOCK_COMMON_ */
